package com.goexcursion

import com.goexcursion.enums.Category;

class Excursion {

	String name
	String description
	Long latitude
	Long longitude
	int positiveVotes = 0
	int negativeVotes = 0
	Category category = Category.INITIAL
	
	static hasOne = [creator:User]
	
    static constraints = {
		name nullable:false
		description nullable:false
		latitude nullable:false 
		longitude nullable:false
		creator nullable:false  
    }
}
